<?php
class City extends AppModel {

	var $name = 'City';

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Country' => array(
			'className' => 'Country',
			'foreignKey' => 'country_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Region' => array(
			'className' => 'Region',
			'foreignKey' => 'region_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Profile' => array(
			'className' => 'Profile',
			'foreignKey' => 'city_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Story' => array(
			'className' => 'Story',
			'foreignKey' => 'city_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Post' => array(
			'className' => 'Post',
			'foreignKey' => 'city_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
		
	);

	var $hasAndBelongsToMany = array(
 		'Profile' =>
 			array(
				 'className' => 'Profile',
				 'joinTable' => 'visited',
				 'foreignKey' => 'city_id',
				 'associationForeignKey' => 'profile_id',
				 'unique' => false,
				 'conditions' => '',
				 'fields' => '',
				 'order' => '',
				 'limit' => '',
				 'offset' => '',
				 'finderQuery' => '',
				 'deleteQuery' => '',
				 'insertQuery' => ''
 				)
 		);

}
?>